stave off an attack

Translations
отразить атаку
They fortified the walls to stave off an attack.
Они укрепили стены, чтобы отразить атаку.